package com.rabbitmq.receivers.priority;

import com.rabbitmq.config.priority.PriorityConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 王霄
 * @date 2022/1/8 21:09
 */
@Component
@Slf4j
public class PriorityReciver {

    @RabbitListener(queues = PriorityConfig.PRIORITY_QUEUE)
    public void consume(String orderId) {
        log.info("消费消息,orderId: {}", orderId);
    }

}
